import {DictTypeModel} from "/@/api/system/model/DictModel";
import axios from "/@/utils/http/axios";
import {MethodEnum} from "/@/utils/http/axios/enum/method-enum";

/**
 * 获取预览文件
 * @param data
 * @param callBack
 */
export function preview(data: DictTypeModel,callBack?: Function):Promise<void> {
    return axios.httpRequest("/file/preview", MethodEnum.GET, data, {callBack});
}